#include<iostream>
#include<string>
using namespace std;

void fun1(string x, string y)
{
	if (x == y)
	{
		cout << x << "=" << y << endl;
	}
	else
	{
		cout << ((x > y) ? x : y )<< endl;
	}
}

void fun2(string x, string y)
{
	if (sizeof(x) == sizeof(y))
	{
		cout << "=" << endl;
	}
	else
	{
		if (sizeof(x) > sizeof(y))
		{
			cout << x << endl;
		}
		else
		{
			cout << y << endl;
		}
	}
}

int main()
{
	cout << "Please enter two strings:" << endl;
	string a;
	string b;
	cin >> a >> b;
	fun1(a, b);
	fun2(a, b);
	cout <<( (a > b) ? a : b )<< endl;
	cout << ((a.size() > b.size()) ? a : b) << endl;
	return 0;
}